<?php 
$host="localhost"; 
$username="root"; 
$password=""; 
$database="dtdd"; 
$connect = mysql_connect($host,$username,$password)or die ("ket noi khong thanh cong"); 
   mysql_query("SET NAMES 'utf8'", $connect);
mysql_select_db($database)or die ("khong tim thay csdl");     
?>